package com.example.hospitalManage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.hospitalManage.entity.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Description:
 * Param:
 * return:
 * Author: 彭雨胜
 * Data: 2022/12/30
 */
@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {
    /**
     * @param hosname:
     * @return Department
     * @author GCT
     * @description TODO
     * 根据hoscode获得科室信息
     * @date 2022/12/31 13:56
     */
    public List<Department> getDepartmentByHoscode(String hosname);

    /**
     * @param depname:
     * @return String
     * @author GCT
     * @description TODO
     * 根据科室名获得depcode
     * @date 2022/12/31 17:01
     */
    public String getDepcodeByDepname(String depname);
}
